package br.com.goldentrade.util;



import java.text.DecimalFormat;
/**
 * Responsavel por Formatar Moeda.
 * @requisicao [2389]
 */

public class MoedaFormat{

	private static MoedaFormat instance = null;
	private DecimalFormat formatoMoeda=null;
	
	private MoedaFormat(){
		formatoMoeda = new DecimalFormat(",##0.00");
	}
	
	public static MoedaFormat getInstance(){
		if(instance == null)
			instance = new MoedaFormat();
		return instance;
	}

	public DecimalFormat getFormatoMoeda() {
		return formatoMoeda;
	}

	public void setFormatoMoeda(DecimalFormat formatoMoeda) {
		this.formatoMoeda = formatoMoeda;
	}
}
